gdk: Clean up docs syntax
authorMatthias Clasen <mclasen@redhat.com>
Thu, 20 May 2021 03:39:18 +0000 (23:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 22 May 2021 21:25:26 +0000 (17:25 -0400)
Replace leftover gtk-doc syntax (#Type) with backquotes.

61 files changed:
gdk/gdk.c
gdk/gdkapplaunchcontext.c
gdk/gdkcairo.c
gdk/gdkcairocontext.c
gdk/gdkclipboard.c
gdk/gdkcontentdeserializer.h
gdk/gdkcontentformats.c
gdk/gdkcontentprovider.c
gdk/gdkcontentprovider.h
gdk/gdkcontentproviderimpl.c
gdk/gdkcontentserializer.c
gdk/gdkcontentserializer.h
gdk/gdkcursor.c
gdk/gdkdevice.c
gdk/gdkdevice.h
gdk/gdkdevicepad.c
gdk/gdkdisplay.c
gdk/gdkdisplaymanager.c
gdk/gdkdragsurface.c
gdk/gdkdrawcontext.c
gdk/gdkevents.c
gdk/gdkeventsprivate.h
gdk/gdkgl.c
gdk/gdkkeys.c
gdk/gdkmemorytexture.h
gdk/gdkpaintable.c
gdk/gdkpaintable.h
gdk/gdkpipeiostream.c
gdk/gdkpixbuf-drawable.c
gdk/gdkpopup.c
gdk/gdkrectangle.c
gdk/gdkseat.c
gdk/gdksurface.c
gdk/gdktoplevel.c
gdk/gdktoplevellayout.c
gdk/gdktypes.h
gdk/gdkvulkancontext.c
gdk/macos/gdkdisplaylinksource.c
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdksurface-wayland.c
gdk/win32/gdkcursor-win32.c
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkglcontext-win32.c
gdk/win32/gdkwin32display.h
gdk/x11/gdkcursor-x11.c
gdk/x11/gdkdevicemanager-x11.c
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdrag-x11.c
gdk/x11/gdkglcontext-egl.c
gdk/x11/gdkglcontext-glx.c
gdk/x11/gdkkeys-x11.c
gdk/x11/gdkmain-x11.c
gdk/x11/gdkmonitor-x11.c
gdk/x11/gdkproperty-x11.c
gdk/x11/gdkscreen-x11.c
gdk/x11/gdkselection-x11.c
gdk/x11/gdksurface-x11.c
gdk/x11/gdkvisual-x11.c
gdk/x11/gdkx11display.h
gdk/x11/gdkx11surface.h
gdk/x11/gdkx11utils.h

index 0970cbc8d1ac54d7ad07e082a8ff8e5fcc614ccc..0607d8f8e228f34c5ec4d2f985cff070b061d4ec 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -50,7 +50,7 @@
 /**
  * GDK_WINDOWING_X11:
  *
- * The #GDK_WINDOWING_X11 macro is defined if the X11 backend
+ * The `GDK_WINDOWING_X11` macro is defined if the X11 backend
  * is supported.
  *
  * Use this macro to guard code that is specific to the X11 backend.
@@ -59,7 +59,7 @@
 /**
  * GDK_WINDOWING_WIN32:
  *
- * The #GDK_WINDOWING_WIN32 macro is defined if the Win32 backend
+ * The `GDK_WINDOWING_WIN32` macro is defined if the Win32 backend
  * is supported.
  *
  * Use this macro to guard code that is specific to the Win32 backend.
@@ -68,7 +68,7 @@
 /**
  * GDK_WINDOWING_MACOS:
  *
- * The #GDK_WINDOWING_MACOS macro is defined if the MacOS backend
+ * The `GDK_WINDOWING_MACOS` macro is defined if the MacOS backend
  * is supported.
  *
  * Use this macro to guard code that is specific to the MacOS backend.
@@ -77,7 +77,7 @@
 /**
  * GDK_WINDOWING_WAYLAND:
  *
- * The #GDK_WINDOWING_WAYLAND macro is defined if the Wayland backend
+ * The `GDK_WINDOWING_WAYLAND` macro is defined if the Wayland backend
  * is supported.
  *
  * Use this macro to guard code that is specific to the Wayland backend.
index b842026a74430772884a0711697fbd3c692fc11d..9c9e99d58e20aa930e446d79b629665e97e650ba 100644 (file)
@@ -237,7 +237,7 @@ gdk_app_launch_context_set_timestamp (GdkAppLaunchContext *context,
 /**
  * gdk_app_launch_context_set_icon:
  * @context: a `GdkAppLaunchContext`
- * @icon: (nullable): a #GIcon
+ * @icon: (nullable): a `GIcon`
  *
  * Sets the icon for applications that are launched with this
  * context.
index 3db47ac7554e9a2c63983d5c2a904759f645ea7b..955a31cbf1f88daedb21a5d2e8af11383b4e1dfb 100644 (file)
@@ -26,9 +26,9 @@
 /**
  * gdk_cairo_set_source_rgba:
  * @cr: a cairo context
- * @rgba: a #GdkRGBA
+ * @rgba: a `GdkRGBA`
  *
- * Sets the specified #GdkRGBA as the source color of @cr.
+ * Sets the specified `GdkRGBA` as the source color of @cr.
  */
 void
 gdk_cairo_set_source_rgba (cairo_t       *cr,
@@ -47,7 +47,7 @@ gdk_cairo_set_source_rgba (cairo_t       *cr,
 /**
  * gdk_cairo_rectangle:
  * @cr: a cairo context
- * @rectangle: a #GdkRectangle
+ * @rectangle: a `GdkRectangle`
  *
  * Adds the given rectangle to the current path of @cr.
  */
@@ -66,7 +66,7 @@ gdk_cairo_rectangle (cairo_t            *cr,
 /**
  * gdk_cairo_region:
  * @cr: a cairo context
- * @region: a #cairo_region_t
+ * @region: a `cairo_region_t`
  *
  * Adds the given region to the current path of @cr.
  */
@@ -185,7 +185,7 @@ gdk_cairo_surface_paint_pixbuf (cairo_surface_t *surface,
 /**
  * gdk_cairo_set_source_pixbuf:
  * @cr: a cairo context
- * @pixbuf: a #GdkPixbuf
+ * @pixbuf: a `GdkPixbuf`
  * @pixbuf_x: X coordinate of location to place upper left corner of @pixbuf
  * @pixbuf_y: Y coordinate of location to place upper left corner of @pixbuf
  *
@@ -232,7 +232,7 @@ gdk_cairo_set_source_pixbuf (cairo_t         *cr,
  * You must explicitly check the return value of you want to handle
  * that case.
  *
- * Returns: %TRUE if the extents fit in a #GdkRectangle, %FALSE if not
+ * Returns: %TRUE if the extents fit in a `GdkRectangle`, %FALSE if not
  */
 gboolean
 _gdk_cairo_surface_extents (cairo_surface_t *surface,
index bfb7c244527089ac13c489a999f7d5398448ae04..995ade74a4c09ce097c49c909a1ca37b0b6b8840 100644 (file)
@@ -59,7 +59,7 @@ gdk_cairo_context_init (GdkCairoContext *self)
 
 /**
  * gdk_cairo_context_cairo_create:
- * @self: a #GdkCairoContext that is currently drawing
+ * @self: a `GdkCairoContext` that is currently drawing
  *
  * Retrieves a Cairo context to be used to draw on the `GdkSurface`
  * of @context.
index 1f97994fd51a706c0daa1ba22d6ca40e0c51011f..18b5b7b490bd10624427c6fbd873d12746dad9db 100644 (file)
@@ -833,7 +833,7 @@ gdk_clipboard_read_value_internal (GdkClipboard        *clipboard,
  * @clipboard: a `GdkClipboard`
  * @type: a `GType` to read
  * @io_priority: the I/O priority of the request
- * @cancellable: (nullable): optional #GCancellable object, %NULL to ignore.
+ * @cancellable: (nullable): optional `GCancellable` object
  * @callback: (scope async): callback to call when the request is satisfied
  * @user_data: (closure): the data to pass to callback function
  *
index 4ff70284244c2e49c877cd54182d819e676eaebf..9c3946e0a1c358057b034bfb98cb4a371496c059 100644 (file)
@@ -36,7 +36,7 @@ typedef struct _GdkContentDeserializer GdkContentDeserializer;
 
 /**
  * GdkContentDeserializeFunc:
- * @deserializer: a #GdkContentDeserializer
+ * @deserializer: a `GdkContentDeserializer`
  *
  * The type of a function that can be registered with gdk_content_register_deserializer().
  *
index d7bc490465122ba94262280b3e6d809a0100e660..8a0ca88f7e93ea662bfb1a6edadef01cd26b3556 100644 (file)
@@ -411,7 +411,7 @@ gdk_content_formats_match_mime_type (const GdkContentFormats *first,
  *
  * Checks if a given `GType` is part of the given @formats.
  *
- * Returns: %TRUE if the #GType was found
+ * Returns: %TRUE if the `GType` was found
  */
 gboolean
 gdk_content_formats_contain_gtype (const GdkContentFormats *formats,
@@ -458,7 +458,7 @@ gdk_content_formats_contain_mime_type (const GdkContentFormats *formats,
  *
  * Gets the `GType`s included in @formats.
  *
- * Note that @formats may not contain any #GTypes, in particular when
+ * Note that @formats may not contain any `GType`s, in particular when
  * they are empty. In that case %NULL will be returned.
  *
  * Returns: (transfer none) (nullable) (array length=n_gtypes zero-terminated=1):
index af96695c84107de14d45bc09d90abeaf16e5a5b7..97368a1dd6b7c8c94c02c6edfb239caa7dcd583d 100644 (file)
@@ -218,7 +218,7 @@ gdk_content_provider_init (GdkContentProvider *provider)
 
 /**
  * gdk_content_provider_ref_formats: (attributes org.gtk.Method.get_property=formats)
- * @provider: a #GdkContentProvider
+ * @provider: a `GdkContentProvider`
  *
  * Gets the formats that the provider can provide its current contents in.
  *
@@ -234,7 +234,7 @@ gdk_content_provider_ref_formats (GdkContentProvider *provider)
 
 /**
  * gdk_content_provider_ref_storable_formats: (attributes org.gtk.Method.get_property=storable-formats)
- * @provider: a #GdkContentProvider
+ * @provider: a `GdkContentProvider`
  *
  * Gets the formats that the provider suggests other applications to store
  * the data in.
@@ -288,7 +288,7 @@ gdk_content_provider_content_changed (GdkContentProvider *provider)
  *
  * The given mime type does not need to be listed in the formats returned by
  * [method@Gdk.ContentProvider.ref_formats]. However, if the given `GType` is
- * not supported, #G_IO_ERROR_NOT_SUPPORTED will be reported.
+ * not supported, `G_IO_ERROR_NOT_SUPPORTED` will be reported.
  *
  * The given @stream will not be closed.
  */
@@ -351,7 +351,7 @@ gdk_content_provider_write_mime_type_finish (GdkContentProvider  *provider,
  * provided in. This given `GType` does not need to be listed in the formats
  * returned by [method@Gdk.ContentProvider.ref_formats]. However, if the
  * given `GType` is not supported, this operation can fail and
- * #G_IO_ERROR_NOT_SUPPORTED will be reported.
+ * `G_IO_ERROR_NOT_SUPPORTED` will be reported.
  *
  * Returns: %TRUE if the value was set successfully. Otherwise
  *   @error will be set to describe the failure.
index f4be04238ea18f582569bd1c81a782b9776ffaea..d9c6370fedd2dcdc09cf3f4badfc25b5888b6bfa 100644 (file)
@@ -45,9 +45,9 @@ struct _GdkContentProvider
 
 /**
  * GdkContentProviderClass:
- * @content_changed: Signal class closure for #GdkContentProvider::content-changed
+ * @content_changed: Signal class closure for `GdkContentProvider::content-changed`
  *
- * Class structure for #GdkContentProvider.
+ * Class structure for `GdkContentProvider`.
  */
 struct _GdkContentProviderClass
 {
index 25c5404a17632bf549fd60d23fed11ce0cef4113..2275792ac34925de4a7ae7ffefc6f8404a9a1875 100644 (file)
@@ -394,7 +394,7 @@ gdk_content_provider_union_init (GdkContentProviderUnion *self)
 /**
  * gdk_content_provider_new_union:
  * @providers: (nullable) (array length=n_providers) (transfer full):
- *   The #GdkContentProviders to present the union of
+ *   The `GdkContentProvider`s to present the union of
  * @n_providers: the number of providers
  *
  * Creates a content provider that represents all the given @providers.
index 29f9b2d203a7088a90b05c56c914425496315e65..ccfb033a863f71d5f714b3d4cc5962e2c65c5e9a 100644 (file)
@@ -533,7 +533,7 @@ serialize_not_found (GdkContentSerializer *serializer)
  * @mime_type: the mime type to serialize to
  * @value: the content to serialize
  * @io_priority: the I/O priority of the operation
- * @cancellable: (nullable): optional #GCancellable object
+ * @cancellable: (nullable): optional `GCancellable` object
  * @callback: (scope async): callback to call when the operation is done
  * @user_data: (closure): data to pass to the callback function
  *
index 17b5c7c36e8282cee7023cda59c9b409904253e4..f7dedccebf158752d34cb71bf67beab3a633b848 100644 (file)
@@ -36,7 +36,7 @@ typedef struct _GdkContentSerializer GdkContentSerializer;
 
 /**
  * GdkContentSerializeFunc:
- * @serializer: a #GdkContentSerializer
+ * @serializer: a `GdkContentSerializer`
  *
  * The type of a function that can be registered with gdk_content_register_serializer().
  *
index 105009ce825bab3a3c86b86ee8fc565423064aef..1c9fc9b4b1b42aa069808d78b9ef0ae5678ae007 100644 (file)
@@ -410,7 +410,7 @@ gdk_cursor_get_name (GdkCursor *cursor)
 
 /**
  * gdk_cursor_get_texture:
- * @cursor: a #GdkCursor.
+ * @cursor: a `GdkCursor`
  *
  * Returns the texture for the cursor.
  *
index f3e754ee032e869a9c30472cac80751697078def..3869b6d9bcb71128becfbdde29c3ba428e54d562 100644 (file)
@@ -107,7 +107,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
   /**
    * GdkDevice:display: (attributes org.gtk.Property.get=gdk_device_get_display)
    *
-   * The #GdkDisplay the #GdkDevice pertains to.
+   * The `GdkDisplay` the `GdkDevice` pertains to.
    */
   device_props[PROP_DISPLAY] =
       g_param_spec_object ("display",
@@ -1190,7 +1190,7 @@ gdk_device_set_seat (GdkDevice *device,
 
 /**
  * gdk_device_get_seat: (attributes org.gtk.Method.get_property=seat)
- * @device: A #GdkDevice
+ * @device: A `GdkDevice`
  *
  * Returns the `GdkSeat` the device belongs to.
  *
index 156d5d6eba7ea72daf6dac4f8e36480d5116200f..1a849a8ac4401b8dada28872580add06df35f84a 100644 (file)
@@ -64,11 +64,11 @@ typedef enum
 
 /**
  * GdkTimeCoord:
- * @time: The timestamp for this event.
+ * @time: The timestamp for this event
  * @flags: Flags indicating what axes are present
  * @axes: (array fixed-size=12): axis values
  *
- * A #GdkTimeCoord stores a single event in a motion history.
+ * A `GdkTimeCoord` stores a single event in a motion history.
  */
 struct _GdkTimeCoord
 {
index 16ed4d58f935de1b6c6a913885eea362c4d1b7ad..ed0bcb9ab404aec6c523cba07ddf87bfba848b1a 100644 (file)
@@ -36,7 +36,7 @@
  * (current) for each given group, different groups may have different
  * current modes. The number of available modes in a group can be found
  * out through [method@Gdk.DevicePad.get_group_n_modes], and the current mode
- * for a given group will be notified through events of type #GDK_PAD_GROUP_MODE.
+ * for a given group will be notified through events of type `GDK_PAD_GROUP_MODE`.
  */
 
 #include "config.h"
index a88e9437be1ea788669effc7d2f02535f6541173..0def0da75cc60391e15bdbcb1a5b9b97c29efd5a 100644 (file)
@@ -1141,13 +1141,13 @@ gdk_display_create_surface (GdkDisplay     *display,
                                                           x, y, width, height);
 }
 
-/**
+/*< private >
  * gdk_display_get_keymap:
  * @display: the `GdkDisplay`
  *
- * Returns the #GdkKeymap attached to @display.
+ * Returns the `GdkKeymap` attached to @display.
  *
- * Returns: (transfer none): the #GdkKeymap attached to @display.
+ * Returns: (transfer none): the `GdkKeymap` attached to @display.
  */
 GdkKeymap *
 gdk_display_get_keymap (GdkDisplay *display)
@@ -1159,8 +1159,8 @@ gdk_display_get_keymap (GdkDisplay *display)
 
 /*< private >
  * gdk_display_make_gl_context_current:
- * @display: a #GdkDisplay
- * @context: (optional): a #GdkGLContext
+ * @display: a `GdkDisplay`
+ * @context: (optional): a `GdkGLContext`
  *
  * Makes the given @context the current GL context, or unsets
  * the current GL context if @context is %NULL.
@@ -1365,7 +1365,7 @@ gdk_display_list_seats (GdkDisplay *display)
  * You can listen to the GListModel::items-changed signal on
  * this list to monitor changes to the monitor of this display.
  *
- * Returns: (transfer none): a #GListModel of `GdkMonitor`
+ * Returns: (transfer none): a `GListModel` of `GdkMonitor`
  */
 GListModel *
 gdk_display_get_monitors (GdkDisplay *self)
index c7e3769e92b135d0fb9e9d32d28159f5d51568a5..6935f7ada970ddeef7c1753b2e9fe06b761859a9 100644 (file)
@@ -76,7 +76,7 @@
  *
  * When writing backend-specific code that is supposed to work with
  * multiple GDK backends, you have to consider both compile time and
- * runtime. At compile time, use the #GDK_WINDOWING_X11, #GDK_WINDOWING_WIN32
+ * runtime. At compile time, use the `GDK_WINDOWING_X11`, `GDK_WINDOWING_WIN32`
  * macros, etc. to find out which backends are present in the GDK library
  * you are building your application against. At runtime, use type-check
  * macros like GDK_IS_X11_DISPLAY() to find out which backend is in use:
index 700033755170fdf1e2eaf1bd437bc950eb46fa5a..ec5431b03e954bfcd3c263329e6a8244f993f12d 100644 (file)
@@ -26,7 +26,7 @@
 /**
  * GdkDragSurface:
  *
- * A #GdkDragSurface is an interface for surfaces used during DND.
+ * A `GdkDragSurface` is an interface for surfaces used during DND.
  */
 
 /**
index a0942add71ce9d4163a30e362b5ff77afa19cd1a..c1833468a8efdb9b6268e6bad9612f6f595d3856 100644 (file)
@@ -237,7 +237,7 @@ gdk_draw_context_get_display (GdkDrawContext *context)
  *
  * Retrieves the surface that @context is bound to.
  *
- * Returns: (nullable) (transfer none): the #GdkSurface
+ * Returns: (nullable) (transfer none): a `GdkSurface`
  */
 GdkSurface *
 gdk_draw_context_get_surface (GdkDrawContext *context)
@@ -382,7 +382,7 @@ gdk_draw_context_end_frame (GdkDrawContext *context)
 
 /**
  * gdk_draw_context_get_frame_region:
- * @context: a #GdkDrawContext
+ * @context: a `GdkDrawContext`
  *
  * Retrieves the region that is currently being repainted.
  *
index 4775c956357af799d8c054f6ce1d15e064f4d781..99e3dc89410fa4a3c32492bf89656a92d078bdc0 100644 (file)
@@ -258,7 +258,7 @@ gdk_event_get_type (void)
  * @instance_size: the size of the instance of a GdkEvent subclass
  * @instance_init: (nullable): the function to initialize the instance data
  * @finalize: (nullable): the function to free the instance data
- * @get_state: (nullable): the function to retrieve the #GdkModifierType
+ * @get_state: (nullable): the function to retrieve the `GdkModifierType`:w
  *   associated to the event
  * @get_position: (nullable): the function to retrieve the event coordinates
  * @get_sequence: (nullable): the function to retrieve the event sequence
@@ -358,7 +358,7 @@ static GType gdk_event_types[GDK_EVENT_LAST];
  * Similarly to %G_DEFINE_TYPE_WITH_CODE, this macro will generate a `get_type()`
  * function that registers the event type.
  *
- * You can specify code to be run after the type registration; the #GType of
+ * You can specify code to be run after the type registration; the `GType` of
  * the event is available in the `gdk_define_event_type_id` variable.
  */
 #define GDK_DEFINE_EVENT_TYPE(TypeName, type_name, type_info, _C_) \
@@ -382,8 +382,8 @@ type_name ## _get_type (void) \
 /*< private >
  * gdk_event_alloc:
  * @event_type: the `GdkEvent`Type to allocate
- * @surface: (nullable): the #GdkSurface of the event
- * @device: (nullable): the #GdkDevice of the event
+ * @surface: (nullable): the `GdkSurface` of the event
+ * @device: (nullable): the `GdkDevice` of the event
  * @time_: the event serial
  *
  * Allocates a `GdkEvent` for the given @event_type, and sets its
@@ -496,14 +496,13 @@ _gdk_event_emit (GdkEvent *event)
 
 /**
  * _gdk_event_queue_find_first:
- * @display: a #GdkDisplay
- * 
+ * @display: a `GdkDisplay`
+ *
  * Find the first event on the queue that is not still
  * being filled in.
- * 
- * Returns: (nullable): Pointer to the list node for that event, or
- *   %NULL.
- **/
+ *
+ * Returns: (nullable): Pointer to the list node for that event
+ */
 GList*
 _gdk_event_queue_find_first (GdkDisplay *display)
 {
@@ -537,13 +536,13 @@ _gdk_event_queue_find_first (GdkDisplay *display)
 
 /**
  * _gdk_event_queue_append:
- * @display: a #GdkDisplay
- * @event: Event to append.
- * 
+ * @display: a `GdkDisplay`
+ * @event: Event to append
+ *
  * Appends an event onto the tail of the event queue.
  *
  * Returns: the newly appended list node.
- **/
+ */
 GList *
 _gdk_event_queue_append (GdkDisplay *display,
                         GdkEvent   *event)
@@ -555,11 +554,11 @@ _gdk_event_queue_append (GdkDisplay *display,
 
 /*
  * _gdk_event_queue_remove_link:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
  * @node: node to remove
  *
  * Removes a specified list node from the event queue.
- **/
+ */
 void
 _gdk_event_queue_remove_link (GdkDisplay *display,
                              GList      *node)
@@ -569,12 +568,12 @@ _gdk_event_queue_remove_link (GdkDisplay *display,
 
 /*
  * _gdk_event_unqueue:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
  *
  * Removes and returns the first event from the event
  * queue that is not still being filled in.
  *
- * Returns: (nullable) (transfer full): the event
+ * Returns: (nullable): the event
  */
 GdkEvent*
 _gdk_event_unqueue (GdkDisplay *display)
@@ -1180,7 +1179,7 @@ gdk_event_get_event_type (GdkEvent *event)
  *
  * Extracts the surface associated with an event.
  *
- * Returns: (transfer none): The #GdkSurface associated with the event
+ * Returns: (transfer none): The `GdkSurface` associated with the event
  */
 GdkSurface *
 gdk_event_get_surface (GdkEvent *event)
@@ -1196,7 +1195,7 @@ gdk_event_get_surface (GdkEvent *event)
  *
  * Returns the seat that originated the event.
  *
- * Returns: (nullable) (transfer none): a #GdkSeat.
+ * Returns: (nullable) (transfer none): a `GdkSeat`.
  */
 GdkSeat *
 gdk_event_get_seat (GdkEvent *event)
@@ -1212,7 +1211,7 @@ gdk_event_get_seat (GdkEvent *event)
  *
  * Returns the device of an event.
  *
- * Returns: (nullable) (transfer none): a #GdkDevice.
+ * Returns: (nullable) (transfer none): a `GdkDevice`
  */
 GdkDevice *
 gdk_event_get_device (GdkEvent *event)
@@ -1272,7 +1271,7 @@ gdk_event_get_time (GdkEvent *event)
  *
  * Retrieves the display associated to the @event.
  *
- * Returns: (transfer none) (nullable): a #GdkDisplay
+ * Returns: (transfer none) (nullable): a `GdkDisplay`
  */
 GdkDisplay *
 gdk_event_get_display (GdkEvent *event)
index aca69d551fe357fea709accd54af1fcfd55f721b..1ed555661f01a26024a978b2061a9c06516b4ca8 100644 (file)
@@ -105,7 +105,7 @@ struct _GdkDeleteEvent
  * GdkMotionEvent:
  * @state: (type GdkModifierType): a bit-mask representing the state of
  *   the modifier keys (e.g. Control, Shift and Alt) set during the motion
- *   event. See #GdkModifierType.
+ *   event. See [enum@Gdk.ModifierType]
  * @x: the x coordinate of the pointer relative to the surface.
  * @y: the y coordinate of the pointer relative to the surface.
  * @axes: @x, @y translated to the axes of @device, or %NULL if @device is
@@ -132,7 +132,7 @@ struct _GdkMotionEvent
  * GdkButtonEvent:
  * @state: (type GdkModifierType): a bit-mask representing the state of
  *   the modifier keys (e.g. Control, Shift and Alt) and the pointer
- *   buttons. See #GdkModifierType.
+ *   buttons. See [enum@Gdk.ModifierType]
  * @button: the button which was pressed or released, numbered from 1 to 5.
  *   Normally button 1 is the left mouse button, 2 is the middle button,
  *   and 3 is the right button. On 2-button mice, the middle button can
@@ -141,7 +141,7 @@ struct _GdkMotionEvent
  * @y: the y coordinate of the pointer relative to the surface.
  * @axes: @x, @y translated to the axes of @device, or %NULL if @device is
  *   the mouse.
- * @tool: a #GdkDeviceTool
+ * @tool: a `GdkDeviceTool`
  *
  * Used for button press and button release events. The
  * @type field will be one of %GDK_BUTTON_PRESS or %GDK_BUTTON_RELEASE,
@@ -162,7 +162,7 @@ struct _GdkButtonEvent
  * GdkTouchEvent:
  * @state: (type GdkModifierType): a bit-mask representing the state of
  *   the modifier keys (e.g. Control, Shift and Alt) and the pointer
- *   buttons. See #GdkModifierType
+ *   buttons. See [enum@Gdk.ModifierType]
  * @x: the x coordinate of the pointer relative to the surface
  * @y: the y coordinate of the pointer relative to the surface
  * @axes: @x, @y translated to the axes of the event's device, or %NULL
@@ -200,7 +200,7 @@ struct _GdkTouchEvent
  * @y: the y coordinate of the pointer relative to the surface.
  * @state: (type GdkModifierType): a bit-mask representing the state of
  *   the modifier keys (e.g. Control, Shift and Alt) and the pointer
- *   buttons. See #GdkModifierType.
+ *   buttons. See [enum@Gdk.ModifierType]
  * @direction: the direction to scroll to (one of %GDK_SCROLL_UP,
  *   %GDK_SCROLL_DOWN, %GDK_SCROLL_LEFT, %GDK_SCROLL_RIGHT or
  *   %GDK_SCROLL_SMOOTH).
@@ -208,7 +208,7 @@ struct _GdkTouchEvent
  * @delta_y: the y coordinate of the scroll delta
  * @pointer_emulated: whether the scroll event was the result of
  *   a pointer emulation
- * @tool: a #GdkDeviceTool
+ * @tool: a `GdkDeviceTool`
  * @history: (element-type GdkScrollHistory): array of times and deltas
  *   for other scroll events that were compressed before delivering the
  *   current event
@@ -256,7 +256,7 @@ typedef struct {
  * GdkKeyEvent:
  * @state: (type GdkModifierType): a bit-mask representing the state of
  *   the modifier keys (e.g. Control, Shift and Alt) and the pointer
- *   buttons. See #GdkModifierType.
+ *   buttons. See [enum@Gdk.ModifierType]
  * @keycode: the raw code of the key that was pressed or released.
  * @translated: the result of translating @keycode. First with the full
  *   @state, then while ignoring Caps Lock.
@@ -277,7 +277,7 @@ struct _GdkKeyEvent
  * GdkCrossingEvent:
  * @state: (type GdkModifierType): a bit-mask representing the state of
  *   the modifier keys (e.g. Control, Shift and Alt) and the pointer
- *   buttons. See #GdkModifierType.
+ *   buttons. See [enum@Gdk.ModifierType]
  * @mode: the crossing mode (%GDK_CROSSING_NORMAL, %GDK_CROSSING_GRAB,
  *  %GDK_CROSSING_UNGRAB, %GDK_CROSSING_GTK_GRAB, %GDK_CROSSING_GTK_UNGRAB or
  *  %GDK_CROSSING_STATE_CHANGED).  %GDK_CROSSING_GTK_GRAB, %GDK_CROSSING_GTK_UNGRAB,
@@ -324,7 +324,7 @@ struct _GdkFocusEvent
 
 /*
  * GdkProximityEvent:
- * @tool: the #GdkDeviceTool associated to the event
+ * @tool: the `GdkDeviceTool` associated to the event
  *
  * A proximity event indicates that a tool of a graphic tablet, or similar
  * devices that report proximity, has moved in or out of contact with the
@@ -351,7 +351,7 @@ struct _GdkProximityEvent
  * when the grab surface becomes unviewable (i.e. it or one of its ancestors
  * is unmapped), or if the same application grabs the pointer or keyboard
  * again. Note that implicit grabs (which are initiated by button presses)
- * can also cause #GdkGrabBrokenEvent events.
+ * can also cause `GdkGrabBrokenEvent` events.
  */
 struct _GdkGrabBrokenEvent
 {
@@ -364,7 +364,7 @@ struct _GdkGrabBrokenEvent
 
 /*
  * GdkDNDEvent:
- * @drop: the #GdkDrop for the current DND operation.
+ * @drop: the `GdkDrop` for the current DND operation.
  * @x: the X coordinate of the pointer
  * @y: the Y coordinate of the pointer
  *
@@ -383,7 +383,7 @@ struct _GdkDNDEvent
  * GdkTouchpadEvent:
  * @state: (type GdkModifierType): a bit-mask representing the state of
  *   the modifier keys (e.g. Control, Shift and Alt) and the pointer
- *   buttons. See #GdkModifierType.
+ *   buttons. See [enum@Gdk.ModifierType]
  * @phase: (type GdkTouchpadGesturePhase): the current phase of the gesture
  * @n_fingers: The number of fingers triggering the pinch
  * @time: the time of the event in milliseconds
index eb16ec8d179af0feeff39c84f34f37c883dfeddd..4e57853afb3098c0272867993e2d23d5e974e197 100644 (file)
@@ -303,8 +303,8 @@ gdk_gl_texture_quads (GdkGLContext *paint_context,
  *
  * The main way to draw GL content in GTK.
  *
- * It takes a render buffer ID (@source_type == #GL_RENDERBUFFER) or a texture
- * id (@source_type == #GL_TEXTURE) and draws it onto @cr with an OVER operation,
+ * It takes a render buffer ID (@source_type == GL_RENDERBUFFER) or a texture
+ * id (@source_type == GL_TEXTURE) and draws it onto @cr with an OVER operation,
  * respecting the current clip. The top left corner of the rectangle specified
  * by @x, @y, @width and @height will be drawn at the current (0,0) position of
  * the `cairo_t`.
@@ -315,8 +315,8 @@ gdk_gl_texture_quads (GdkGLContext *paint_context,
  * no special effects applied to @cr it will however use a more efficient
  * approach.
  *
- * For #GL_RENDERBUFFER the code will always fall back to software for buffers
- * with alpha components, so make sure you use #GL_TEXTURE if using alpha.
+ * For GL_RENDERBUFFER the code will always fall back to software for buffers
+ * with alpha components, so make sure you use GL_TEXTURE if using alpha.
  *
  * Calling this may change the current GL context.
  */
index d47c4589f2f5b4d921c39260a955030325171324..b8e925a46e2196153b178a2e1fc05c1447443330 100644 (file)
@@ -201,13 +201,13 @@ gdk_keymap_init (GdkKeymap *keymap)
   keymap->cache = g_hash_table_new (g_direct_hash, g_direct_equal);
 }
 
-/**
+/*< private >
  * gdk_keymap_get_display:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  *
- * Retrieves the #GdkDisplay associated to the @keymap.
+ * Retrieves the `GdkDisplay` associated to the @keymap.
  *
- * Returns: (transfer none): a #GdkDisplay
+ * Returns: (transfer none): a `GdkDisplay`
  */
 GdkDisplay *
 gdk_keymap_get_display (GdkKeymap *keymap)
@@ -302,9 +302,9 @@ gdk_keyval_is_lower (guint keyval)
   return FALSE;
 }
 
-/**
+/*< private >
  * gdk_keymap_get_direction:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  *
  * Returns the direction of effective layout of the keymap.
  *
@@ -314,7 +314,7 @@ gdk_keyval_is_lower (guint keyval)
  * Returns: %PANGO_DIRECTION_LTR or %PANGO_DIRECTION_RTL
  *   if it can determine the direction. %PANGO_DIRECTION_NEUTRAL
  *   otherwise.
- **/
+ */
 PangoDirection
 gdk_keymap_get_direction (GdkKeymap *keymap)
 {
@@ -323,15 +323,15 @@ gdk_keymap_get_direction (GdkKeymap *keymap)
   return GDK_KEYMAP_GET_CLASS (keymap)->get_direction (keymap);
 }
 
-/**
+/*< private >
  * gdk_keymap_have_bidi_layouts:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  *
  * Determines if keyboard layouts for both right-to-left and left-to-right
  * languages are in use.
  *
  * Returns: %TRUE if there are layouts in both directions, %FALSE otherwise
- **/
+ */
 gboolean
 gdk_keymap_have_bidi_layouts (GdkKeymap *keymap)
 {
@@ -340,9 +340,9 @@ gdk_keymap_have_bidi_layouts (GdkKeymap *keymap)
   return GDK_KEYMAP_GET_CLASS (keymap)->have_bidi_layouts (keymap);
 }
 
-/**
+/*< private >
  * gdk_keymap_get_caps_lock_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  *
  * Returns whether the Caps Lock modifier is locked.
  *
@@ -356,9 +356,9 @@ gdk_keymap_get_caps_lock_state (GdkKeymap *keymap)
   return GDK_KEYMAP_GET_CLASS (keymap)->get_caps_lock_state (keymap);
 }
 
-/**
+/*< private >
  * gdk_keymap_get_num_lock_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  *
  * Returns whether the Num Lock modifier is locked.
  *
@@ -372,9 +372,9 @@ gdk_keymap_get_num_lock_state (GdkKeymap *keymap)
   return GDK_KEYMAP_GET_CLASS (keymap)->get_num_lock_state (keymap);
 }
 
-/**
+/*< private >
  * gdk_keymap_get_scroll_lock_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  *
  * Returns whether the Scroll Lock modifier is locked.
  *
@@ -388,9 +388,9 @@ gdk_keymap_get_scroll_lock_state (GdkKeymap *keymap)
   return GDK_KEYMAP_GET_CLASS (keymap)->get_scroll_lock_state (keymap);
 }
 
-/**
+/*< private >
  * gdk_keymap_get_modifier_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  *
  * Returns the current modifier state.
  *
@@ -407,12 +407,12 @@ gdk_keymap_get_modifier_state (GdkKeymap *keymap)
   return 0;
 }
 
-/**
+/*< private >
  * gdk_keymap_get_entries_for_keyval:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  * @keyval: a keyval, such as %GDK_KEY_a, %GDK_KEY_Up, %GDK_KEY_Return, etc.
  * @keys: (out) (array length=n_keys) (transfer full): return location
- *   for an array of #GdkKeymapKey
+ *   for an array of `GdkKeymapKey`
  * @n_keys: return location for number of elements in returned array
  *
  * Obtains a list of keycode/group/level combinations that will
@@ -422,7 +422,7 @@ gdk_keymap_get_modifier_state (GdkKeymap *keymap)
  * right symbol is used. On US keyboards, the shift key changes the
  * keyboard level, and there are no groups. A group switch key might
  * convert a keyboard between Hebrew to English modes, for example.
- * #GdkEventKey contains a %group field that indicates the active
+ * `GdkEventKey` contains a %group field that indicates the active
  * keyboard group. The level is computed from the modifier mask.
  * The returned array should be freed
  * with g_free().
@@ -489,18 +489,18 @@ gdk_keymap_get_cached_entries_for_keyval (GdkKeymap     *keymap,
   *keys = (GdkKeymapKey *)&g_array_index (keymap->cached_keys, GdkKeymapKey, offset);
 }
 
-/**
+/*< private >
  * gdk_keymap_get_entries_for_keycode:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  * @hardware_keycode: a keycode
  * @keys: (out) (array length=n_entries) (transfer full) (optional): return
- *   location for array of #GdkKeymapKey
+ *   location for array of `GdkKeymapKey`
  * @keyvals: (out) (array length=n_entries) (transfer full) (optional): return
  *   location for array of keyvals
  * @n_entries: length of @keys and @keyvals
  *
  * Returns the keyvals bound to @hardware_keycode.
- * The Nth #GdkKeymapKey in @keys is bound to the Nth
+ * The Nth `GdkKeymapKey` in @keys is bound to the Nth
  * keyval in @keyvals. Free the returned arrays with g_free().
  * When a keycode is pressed by the user, the keyval from
  * this list of entries is selected by considering the effective
@@ -522,10 +522,10 @@ gdk_keymap_get_entries_for_keycode (GdkKeymap     *keymap,
                                                                  keys, keyvals, n_entries);
 }
 
-/**
+/*< private >
  * gdk_keymap_lookup_key:
- * @keymap: a #GdkKeymap
- * @key: a #GdkKeymapKey with keycode, group, and level initialized
+ * @keymap: a `GdkKeymap`
+ * @key: a `GdkKeymapKey` with keycode, group, and level initialized
  *
  * Looks up the keyval mapped to a keycode/group/level triplet.
  * If no keyval is bound to @key, returns 0. For normal user input,
@@ -545,9 +545,9 @@ gdk_keymap_lookup_key (GdkKeymap          *keymap,
   return GDK_KEYMAP_GET_CLASS (keymap)->lookup_key (keymap, key);
 }
 
-/**
+/*< private >
  * gdk_keymap_translate_keyboard_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
  * @hardware_keycode: a keycode
  * @state: a modifier state
  * @group: active keyboard group
@@ -557,7 +557,7 @@ gdk_keymap_lookup_key (GdkKeymap          *keymap,
  * @consumed_modifiers: (out) (optional): return location for modifiers
  *   that were used to determine the group or level
  *
- * Translates the contents of a #GdkEventKey into a keyval, effective
+ * Translates the contents of a `GdkEventKey` into a keyval, effective
  * group, and level. Modifiers that affected the translation and
  * are thus unavailable for application use are returned in
  * @consumed_modifiers.
@@ -565,7 +565,7 @@ gdk_keymap_lookup_key (GdkKeymap          *keymap,
  * groups and levels. The @effective_group is the group that was
  * actually used for the translation; some keys such as Enter are not
  * affected by the active keyboard group. The @level is derived from
- * @state. For convenience, #GdkEventKey already contains the translated
+ * @state. For convenience, `GdkEventKey` already contains the translated
  * keyval, so this function isn’t as useful as you might think.
  *
  * @consumed_modifiers gives modifiers that should be masked outfrom @state
@@ -680,7 +680,7 @@ gdk_keyval_from_name (const char *keyval_name)
  *
  * Obtains the upper- and lower-case versions of the keyval @symbol.
  *
- * Examples of keyvals are #GDK_KEY_a, #GDK_KEY_Enter, #GDK_KEY_F1, etc.
+ * Examples of keyvals are `GDK_KEY_a`, `GDK_KEY_Enter`, `GDK_KEY_F1`, etc.
  */
 void
 gdk_keyval_convert_case (guint symbol,
index 598b2f2c3a1d42f34142620c7f158f947690fcc9..35d6fb7cbc9f39bc4640a370d1e63978534967e1 100644 (file)
@@ -79,7 +79,7 @@ typedef enum {
  * This is the format provided by [method@Gdk.Texture.download].
  * It is equal to %CAIRO_FORMAT_ARGB32.
  *
- * Be aware that unlike the #GdkMemoryFormat values, this format
+ * Be aware that unlike the `GdkMemoryFormat` values, this format
  * is different for different endianness.
  */
 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
index b86aaaf19d030aab00dc1e83aa7235f434c313ef..51d0e1347c23468e8dce9e763d292ad881adac61 100644 (file)
@@ -661,7 +661,7 @@ gdk_empty_paintable_init (GdkEmptyPaintable *self)
  * Returns a paintable that has the given intrinsic size and draws nothing.
  *
  * This is often useful for implementing the
- * #GdkPaintableInterface.get_current_image() virtual function
+ * [vfunc@Gdk.Paintable.get_current_image] virtual function
  * when the paintable is in an incomplete state (like a
  * [class@Gtk.MediaStream] before receiving the first frame).
  *
index 897f1d814f6319cc791ba21b17db908711013667..da6ade338cf0d084d99c0feeedb9429b5a417332 100644 (file)
@@ -80,7 +80,7 @@ typedef enum {
  * Note that apart from the [vfunc@Gdk.PaintableInterface.snapshot] function,
  * no virtual function of this interface is mandatory to implement, though it
  * is a good idea to implement [vfunc@Gdk.PaintableInterface.get_current_image]
- * for non-static paintables and #GdkPaintableInterface.get_flags() if the
+ * for non-static paintables and [vfunc@Gdk.PaintableInterface.get_flags] if the
  * image is not dynamic as the default implementation returns no flags and
  * that will make the implementation likely quite slow.
  */
index 02147e4a121b303683ce3ebb8bb71f4e8400160d..fe5a77e168a4d5c5ceb112a3108d600d85bb37f3 100644 (file)
@@ -458,15 +458,16 @@ gdk_pipe_io_stream_init (GdkPipeIOStream *pipe)
 /**
  * gdk_pipe_io_stream_new:
  *
- * Creates a #GIOStream whose input- and output-stream behave like a pipe.
+ * Creates a `GIOStream` whose input- and output-stream behave like a pipe.
+ *
  * Data written into the output stream becomes available for reading on
  * the input stream.
  *
  * Note that this is data transfer in the opposite direction to
  * g_output_stream_splice().
  *
- * Returns: a new #GIOStream
- **/
+ * Returns: a new `GIOStream`
+ */
 GIOStream *
 gdk_pipe_io_stream_new (void)
 {
index a337d798fe18989d1fa8caae212e0af7a0eba010..e649236faaff2c5daaec35852c43d791f088070f 100644 (file)
@@ -225,7 +225,7 @@ gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
  * stages will almost certainly convert the pixbuf back into a texture
  * to draw it on screen.
  *
- * Returns: (transfer full) (nullable): a new #GdkPixbuf
+ * Returns: (transfer full) (nullable): a new `GdkPixbuf`
  */
 GdkPixbuf *
 gdk_pixbuf_get_from_texture (GdkTexture *texture)
index 3aeb46166bceea6b620bf534c41b15d401794bb8..a71e63d57e215a68e7345656233eafdac05f1495 100644 (file)
@@ -111,7 +111,7 @@ gdk_popup_default_init (GdkPopupInterface *iface)
  * @height: the unconstrained popup height to layout
  * @layout: the `GdkPopupLayout` object used to layout
  *
- * Present @popup after having processed the #GdkPopupLayout rules.
+ * Present @popup after having processed the `GdkPopupLayout` rules.
  *
  * If the popup was previously now showing, it will be showed,
  * otherwise it will change position according to @layout.
index f2c3b3d60507e9e65e9887806f8eab05e5f7149a..32f7e86e201f710d75feaa1a2553f6e2938fe385 100644 (file)
@@ -149,9 +149,9 @@ gdk_rectangle_intersect (const GdkRectangle *src1,
  * @x: X coordinate
  * @y: Y coordinate
  *
- * Returns #TRUE if @rect contains the point described by @x and @y.
+ * Returns %TRUE if @rect contains the point described by @x and @y.
  *
- * Returns: #TRUE if @rect contains the point
+ * Returns: %TRUE if @rect contains the point
  **/
 gboolean
 gdk_rectangle_contains_point (const GdkRectangle *rect,
index 2709fadc85a78becf768e5a7c48a3c1b3cded663..a03081b2a8262f3e6bce1b39f1c40daf691a4b1e 100644 (file)
@@ -315,7 +315,7 @@ gdk_seat_ungrab (GdkSeat *seat)
 
 /**
  * gdk_seat_get_devices:
- * @seat: a #GdkSeat
+ * @seat: a `GdkSeat`
  * @capabilities: capabilities to get devices for
  *
  * Returns the devices that match the given capabilities.
index 395516102bd49818009838cd376ee60dfd56bc9c..8f562f7d1cc29005f30ca60d74a62a3fcf021eb1 100644 (file)
@@ -1695,7 +1695,7 @@ gdk_surface_constrain_size (GdkGeometry    *geometry,
  * gdk_surface_get_device_position:
  * @surface: a `GdkSurface`
  * @device: pointer `GdkDevice` to query to
- * @x: (out) (optional): return locatio for the X coordinate of @device
+ * @x: (out) (optional): return location for the X coordinate of @device
  * @y: (out) (optional): return location for the Y coordinate of @device
  * @mask: (out) (optional): return location for the modifier mask
  *
@@ -2637,7 +2637,7 @@ gdk_surface_get_scale_factor (GdkSurface *surface)
  * GTK will update this property automatically if the @surface background
  * is opaque, as we know where the opaque regions are. If your surface
  * background is not opaque, please update this property in your
- * #GtkWidgetClass.css_changed() handler.
+ * [vfunc@Gtk.Widget.css_changed] handler.
  */
 void
 gdk_surface_set_opaque_region (GdkSurface      *surface,
index 1d16438c0dd4693fcf113d66ac537cf87d092317..d50a88675da448e9dd24df655def3101c381f126 100644 (file)
@@ -679,7 +679,7 @@ gdk_toplevel_begin_resize (GdkToplevel    *toplevel,
 
 /**
  * gdk_toplevel_begin_move:
- * @toplevel: a #GdkToplevel
+ * @toplevel: a `GdkToplevel`
  * @device: the device used for the operation
  * @button: the button being used to drag, or 0 for a keyboard-initiated drag
  * @x: surface X coordinate of mouse click that began the drag
index d2bc716d90084b6c838ea5639475b4797df38a7f..64f648c476e5f2ec9fdcba974acd8a38fdba9c13 100644 (file)
@@ -64,7 +64,7 @@ G_DEFINE_BOXED_TYPE (GdkToplevelLayout, gdk_toplevel_layout,
  * The size is in â€ťapplication pixels”, not
  * â€ťdevice pixels” (see gdk_surface_get_scale_factor()).
  *
- * Returns: (transfer full): newly created instance of #GdkToplevelLayout
+ * Returns: (transfer full): newly created instance of `GdkToplevelLayout`
  */
 GdkToplevelLayout *
 gdk_toplevel_layout_new (void)
@@ -85,7 +85,7 @@ gdk_toplevel_layout_new (void)
 
 /**
  * gdk_toplevel_layout_ref:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  *
  * Increases the reference count of @layout.
  *
@@ -100,7 +100,7 @@ gdk_toplevel_layout_ref (GdkToplevelLayout *layout)
 
 /**
  * gdk_toplevel_layout_unref:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  *
  * Decreases the reference count of @layout.
  */
@@ -116,9 +116,9 @@ gdk_toplevel_layout_unref (GdkToplevelLayout *layout)
 
 /**
  * gdk_toplevel_layout_copy:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  *
- * Create a new #GdkToplevelLayout and copy the contents of @layout into it.
+ * Create a new `GdkToplevelLayout` and copy the contents of @layout into it.
  *
  * Returns: (transfer full): a copy of @layout.
  */
@@ -143,8 +143,8 @@ gdk_toplevel_layout_copy (GdkToplevelLayout *layout)
 
 /**
  * gdk_toplevel_layout_equal:
- * @layout: a #GdkToplevelLayout
- * @other: another #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
+ * @other: another `GdkToplevelLayout`
  *
  * Check whether @layout and @other has identical layout properties.
  *
@@ -168,7 +168,7 @@ gdk_toplevel_layout_equal (GdkToplevelLayout *layout,
 
 /**
  * gdk_toplevel_layout_set_resizable:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  * @resizable: %TRUE to allow resizing
  *
  * Sets whether the layout should allow the user
@@ -183,7 +183,7 @@ gdk_toplevel_layout_set_resizable (GdkToplevelLayout *layout,
 
 /**
  * gdk_toplevel_layout_get_resizable:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  *
  * Returns whether the layout should allow the user
  * to resize the surface.
@@ -198,7 +198,7 @@ gdk_toplevel_layout_get_resizable (GdkToplevelLayout *layout)
 
 /**
  * gdk_toplevel_layout_set_maximized:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  * @maximized: %TRUE to maximize
  *
  * Sets whether the layout should cause the surface
@@ -214,7 +214,7 @@ gdk_toplevel_layout_set_maximized (GdkToplevelLayout *layout,
 
 /**
  * gdk_toplevel_layout_get_maximized:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  * @maximized: (out): set to %TRUE if the toplevel should be maximized
  *
  * If the layout specifies whether to the toplevel should go maximized,
@@ -238,7 +238,7 @@ gdk_toplevel_layout_get_maximized (GdkToplevelLayout *layout,
 
 /**
  * gdk_toplevel_layout_set_fullscreen:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  * @fullscreen: %TRUE to fullscreen the surface
  * @monitor: (nullable): the monitor to fullscreen on
  *
@@ -258,7 +258,7 @@ gdk_toplevel_layout_set_fullscreen (GdkToplevelLayout *layout,
 
 /**
  * gdk_toplevel_layout_get_fullscreen:
- * @layout: a #GdkToplevelLayout
+ * @layout: a ``GdkToplevelLayout`
  * @fullscreen: (out): location to store whether the toplevel should be fullscreen
  *
  * If the layout specifies whether to the toplevel should go fullscreen,
@@ -282,7 +282,7 @@ gdk_toplevel_layout_get_fullscreen (GdkToplevelLayout *layout,
 
 /**
  * gdk_toplevel_layout_get_fullscreen_monitor:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
  *
  * Returns the monitor that the layout is fullscreening
  * the surface on.
index faff38f2125d7974113ef0760dba522996efa554..77059797da28394e02af492bc45f850bbcdc26a9 100644 (file)
@@ -112,7 +112,7 @@ typedef struct _GdkVulkanContext      GdkVulkanContext;
  * @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the
  *  surface itself, ignoring window manager decorations.
  *
- * Defines the reference point of a surface and is used in #GdkPopupLayout.
+ * Defines the reference point of a surface and is used in `GdkPopupLayout`.
  */
 typedef enum
 {
@@ -212,7 +212,7 @@ typedef enum {
  *   compiled in.
  * @GDK_VULKAN_ERROR_NOT_AVAILABLE: Vulkan support is not available on this Surface
  *
- * Error enumeration for #GdkVulkanContext.
+ * Error enumeration for `GdkVulkanContext`.
  */
 typedef enum {
   GDK_VULKAN_ERROR_UNSUPPORTED,
index 5fe6ad65124c4ce259131afac74f97a51cb2212d..aa751dedd34a513e7d570a587374df1ebe9e1575 100644 (file)
@@ -674,7 +674,7 @@ gdk_vulkan_context_get_physical_device (GdkVulkanContext *context)
 
 /**
  * gdk_vulkan_context_get_device:
- * @context: a #GdkVulkanContext
+ * @context: a `GdkVulkanContext`
  *
  * Gets the Vulkan device that this context is using.
  *
index 76c57feaeb96e87da710a955da96e0d845a74d3a..d8c5707ff354c1870e18a8a41d96158a34b6d126 100644 (file)
@@ -147,7 +147,7 @@ gdk_display_link_source_frame_cb (CVDisplayLinkRef   display_link,
 /**
  * gdk_display_link_source_new:
  *
- * Creates a new #GSource that will activate the dispatch function upon
+ * Creates a new `GSource` that will activate the dispatch function upon
  * notification from a CVDisplayLink that a new frame should be drawn.
  *
  * Effort is made to keep the transition from the high-priority
@@ -155,7 +155,7 @@ gdk_display_link_source_frame_cb (CVDisplayLinkRef   display_link,
  * somewhat non-ideal since the best case would be to do the drawing
  * from the high-priority thread.
  *
- * Returns: (transfer full): A newly created #GSource.
+ * Returns: (transfer full): A newly created `GSource`
  */
 GSource *
 gdk_display_link_source_new (void)
index 443d7656f67ab092d8d60e2deb54c3c52415f512..85c2002ba8623ec2e2ca199a613ea2cb1bda0b29 100644 (file)
@@ -326,7 +326,7 @@ static const struct org_kde_kwin_server_decoration_manager_listener server_decor
 
 /*
  * gdk_wayland_display_prefers_ssd:
- * @display: (type GdkWaylandDisplay): a #GdkDisplay
+ * @display: (type GdkWaylandDisplay): a `GdkDisplay`
  *
  * Checks whether the Wayland compositor prefers to draw the window
  * decorations or if it leaves decorations to the application.
index a7265677df91aca13cf66f32674e5a8cd94ad1fe..13f7314f3a2a45565cf49d3576944a986f12bd1a 100644 (file)
@@ -4645,7 +4645,7 @@ gdk_wayland_surface_get_inhibitor (GdkWaylandSurface *impl,
 
 /*
  * gdk_wayland_surface_inhibit_shortcuts:
- * @surface: (type GdkWaylandSurface): a #GdkSurface
+ * @surface: (type GdkWaylandSurface): a `GdkSurface`
  * @seat: the seat to inhibit
  *
  * Inhibits the shortcuts coming from the given @seat.
@@ -4675,7 +4675,7 @@ gdk_wayland_surface_inhibit_shortcuts (GdkSurface *surface,
 
 /*
  * gdk_wayland_surface_restore_shortcuts:
- * @surface: (type GdkWaylandSurface): a #GdkSurface
+ * @surface: (type GdkWaylandSurface): a `GdkSurface`
  * @seat: the seat to inhibit
  *
  * Restores the shortcuts on the given @seat inhibited by calling
index 61cf9d83a1b65f929a433970572b4fcd6b2eadb6..39397d3eee37623b1082a3f5f32342387c007f7f 100644 (file)
@@ -1493,17 +1493,17 @@ _gdk_win32_pixbuf_to_hcursor (GdkPixbuf *pixbuf,
 
 /**
  * gdk_win32_display_get_win32hcursor:
- * @display: (type GdkWin32Display): a #GdkDisplay
- * @cursor: a #GdkCursor.
- * 
- * Returns the Win32 HCURSOR wrapper object belonging to a #GdkCursor,
+ * @display: (type GdkWin32Display): a `GdkDisplay`
+ * @cursor: a `GdkCursor`
+ *
+ * Returns the Win32 HCURSOR wrapper object belonging to a `GdkCursor`,
  * potentially creating the cursor object.
  *
  * Be aware that the returned cursor may not be unique to @cursor.
  * It may for example be shared with its fallback cursor.
- * 
- * Returns: a GdkWin32HCursor.
- **/
+ *
+ * Returns: a GdkWin32HCursor
+ */
 GdkWin32HCursor *
 gdk_win32_display_get_win32hcursor (GdkWin32Display *display,
                                     GdkCursor       *cursor)
index 9337ee3ee9be81aacbbd60e8eb16b05b4b9d9661..5c8078b696b8e10984277acb24eb913d963bf81c 100644 (file)
@@ -51,7 +51,7 @@ static int debug_indent = 0;
 
 /**
  * gdk_win32_display_add_filter:
- * @display: a #GdkWin32Display
+ * @display: a `GdkWin32Display`
  * @function: filter callback
  * @data: data to pass to filter callback
  *
@@ -94,7 +94,7 @@ gdk_win32_display_add_filter (GdkWin32Display           *display,
 
 /**
  * _gdk_win32_message_filter_unref:
- * @display: A #GdkWin32Display
+ * @display: A `GdkWin32Display`
  * @filter: A message filter
  *
  * Release a reference to @filter.  Note this function may
@@ -136,7 +136,7 @@ _gdk_win32_message_filter_unref (GdkWin32Display       *display,
 
 /**
  * gdk_win32_display_remove_filter:
- * @display: A #GdkWin32Display
+ * @display: A `GdkWin32Display`
  * @function: previously-added filter function
  * @data: user data for previously-added filter function
  *
@@ -340,7 +340,7 @@ _gdk_win32_display_init_monitors (GdkWin32Display *win32_display)
  * change. Custom cursors constructed with [ctor@Gdk.Cursor.new_from_texture]
  * will have to be handled by the application (GTK applications can
  * learn about cursor theme changes by listening for change notification
- * for the corresponding #GtkSetting).
+ * for the corresponding `GtkSetting`).
  */
 void
 gdk_win32_display_set_cursor_theme (GdkDisplay  *display,
index e81ae5338a6d2175a3e0e24f7e810623e67141e2..bfe800516e69bd1644bb1d715f53738f90d20a4f 100644 (file)
@@ -1218,7 +1218,7 @@ _gdk_win32_display_make_gl_context_current (GdkDisplay *display,
 
 /**
  * gdk_win32_display_get_wgl_version:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
  * @major: (out): return location for the WGL major version
  * @minor: (out): return location for the WGL minor version
  *
index e9e621eba595e0de3d5b55b2298a9a63d84ae470..8f597504219eaa969dc5121834c969b40a3676cc 100644 (file)
@@ -62,7 +62,7 @@ void       gdk_win32_display_set_cursor_theme    (GdkDisplay  *display,
  * @GDK_WIN32_MESSAGE_FILTER_CONTINUE: event not handled, continue processing.
  * @GDK_WIN32_MESSAGE_FILTER_REMOVE: event handled, terminate processing.
  *
- * Specifies the result of applying a #GdkWin32MessageFilterFunc to a Windows message.
+ * Specifies the result of applying a `GdkWin32MessageFilterFunc` to a Windows message.
  */
 typedef enum {
   GDK_WIN32_MESSAGE_FILTER_CONTINUE,     /* Message not handled, continue processing */
@@ -79,12 +79,12 @@ typedef enum {
  * processed by GDK Win32 backend.
  *
  * The @return_value must be set, if this function returns
- * #GDK_WIN32_MESSAGE_FILTER_REMOVE, otherwise it is ignored.
+ * `GDK_WIN32_MESSAGE_FILTER_REMOVE`, otherwise it is ignored.
  *
- * The event translation and message filtering are orthogonal - 
+ * The event translation and message filtering are orthogonal -
  * if a filter wants a GDK event queued, it should do that itself.
  *
- * Returns: a #GdkWin32MessageFilterReturn value.
+ * Returns: a `GdkWin32MessageFilterReturn` value.
  */
 typedef GdkWin32MessageFilterReturn (*GdkWin32MessageFilterFunc) (GdkWin32Display *display,
                                                                   MSG             *message,
index 24b27ba9e9a05bbbaf966c4cc3f36d0987d73767..ce5f8618942d576447134ff547e9ee38bee125e0 100644 (file)
@@ -273,7 +273,7 @@ gdk_x11_cursor_create_for_name (GdkDisplay  *display,
  * change. Custom cursors constructed with [ctor@Gdk.Cursor.new_from_texture]
  * will have to be handled by the application (GTK applications can learn
  * about cursor theme changes by listening for change notification
- * for the corresponding #GtkSetting).
+ * for the corresponding `GtkSetting`).
  */
 void
 gdk_x11_display_set_cursor_theme (GdkDisplay  *display,
@@ -331,19 +331,19 @@ gdk_x11_display_set_cursor_theme (GdkDisplay  *display,
 
 /**
  * gdk_x11_display_get_xcursor:
- * @display: (type GdkX11Display): a #GdkDisplay
- * @cursor: a #GdkCursor.
- * 
- * Returns the X cursor belonging to a #GdkCursor, potentially
+ * @display: (type GdkX11Display): a `GdkDisplay`
+ * @cursor: a `GdkCursor`
+ *
+ * Returns the X cursor belonging to a `GdkCursor`, potentially
  * creating the cursor.
  *
  * Be aware that the returned cursor may not be unique to @cursor.
  * It may for example be shared with its fallback cursor. On old
  * X servers that don't support the XCursor extension, all cursors
  * may even fall back to a few default cursors.
- * 
+ *
  * Returns: an Xlib Cursor.
- **/
+ */
 Cursor
 gdk_x11_display_get_xcursor (GdkDisplay *display,
                              GdkCursor  *cursor)
index 2200ba7661b9638dbc6ebbb4266a3fe34026a8e2..c98faa711f45e5a390b2dda3bc5c889bc4ab7116 100644 (file)
@@ -64,17 +64,17 @@ _gdk_x11_device_manager_new (GdkDisplay *display)
   g_error ("XInput2 support not found on display");
 }
 
-/*
+/**
  * gdk_x11_device_manager_lookup:
- * @device_manager: (type GdkX11DeviceManagerXI2): a #GdkDeviceManager
+ * @device_manager: (type GdkX11DeviceManagerXI2): a `GdkDeviceManager`
  * @device_id: a device ID, as understood by the XInput2 protocol
  *
- * Returns the #GdkDevice that wraps the given device ID.
+ * Returns the `GdkDevice` that wraps the given device ID.
  *
  * Returns: (transfer none) (nullable) (type GdkX11DeviceXI2): The
- *   `GdkDevice` wrapping the device ID,
- *   or %NULL if the given ID doesn’t currently represent a device.
- **/
+ *   `GdkDevice` wrapping the device ID, or %NULL if the given ID
+ *   doesn’t currently represent a device.
+ */
 GdkDevice *
 gdk_x11_device_manager_lookup (GdkX11DeviceManagerXI2 *device_manager,
                               int                     device_id)
index 54840a87bd5421cff8ad00183a7ef589f67693ef..67ffa7b09c58be43cb7e93c12fccf458e6977f1d 100644 (file)
@@ -1624,7 +1624,7 @@ gdk_x11_display_open (const char *display_name)
 
 /**
  * gdk_x11_display_set_program_class:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
  * @program_class: a string
  *
  * Sets the program class.
@@ -1825,7 +1825,7 @@ gdk_x11_display_has_pending (GdkDisplay *display)
 
 /**
  * gdk_x11_display_get_default_group:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  *
  * Returns the default group leader surface for all toplevel surfaces
  * on @display. This surface is implicitly created by GDK.
@@ -1844,10 +1844,10 @@ gdk_x11_display_get_default_group (GdkDisplay *display)
 
 /**
  * gdk_x11_display_grab:
- * @display: (type GdkX11Display): a #GdkDisplay 
- * 
- * Call XGrabServer() on @display. 
- * To ungrab the display again, use gdk_x11_display_ungrab(). 
+ * @display: (type GdkX11Display): a `GdkDisplay`
+ *
+ * Call XGrabServer() on @display.
+ * To ungrab the display again, use gdk_x11_display_ungrab().
  *
  * gdk_x11_display_grab()/gdk_x11_display_ungrab() calls can be nested.
  **/
@@ -1867,10 +1867,10 @@ gdk_x11_display_grab (GdkDisplay *display)
 
 /**
  * gdk_x11_display_ungrab:
- * @display: (type GdkX11Display): a #GdkDisplay
- * 
- * Ungrab @display after it has been grabbed with 
- * gdk_x11_display_grab(). 
+ * @display: (type GdkX11Display): a `GdkDisplay`
+ *
+ * Ungrab @display after it has been grabbed with
+ * gdk_x11_display_grab().
  **/
 void
 gdk_x11_display_ungrab (GdkDisplay *display)
@@ -1963,10 +1963,10 @@ gdk_x11_display_finalize (GObject *object)
 /**
  * gdk_x11_lookup_xdisplay:
  * @xdisplay: a pointer to an X Display
- * 
- * Find the #GdkDisplay corresponding to @xdisplay, if any exists.
- * 
- * Returns: (transfer none) (type GdkX11Display): the #GdkDisplay, if found, otherwise %NULL.
+ *
+ * Find the `GdkDisplay` corresponding to @xdisplay, if any exists.
+*
+ * Returns: (transfer none) (type GdkX11Display): the `GdkDisplay`, if found, otherwise %NULL.
  **/
 GdkDisplay *
 gdk_x11_lookup_xdisplay (Display *xdisplay)
@@ -1995,14 +1995,13 @@ gdk_x11_lookup_xdisplay (Display *xdisplay)
 
 /*
  * _gdk_x11_display_screen_for_xrootwin:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
  * @xrootwin: window ID for one of the screen’s of the display.
  *
- * Given the root window ID of one of the screen’s of a #GdkDisplay,
+ * Given the root window ID of one of the screen’s of a `GdkDisplay`,
  * finds the screen.
  *
- * Returns: (transfer none) (nullable): the #GdkX11Screen
- *   corresponding to @xrootwin
+ * Returns: (transfer none): the `GdkX11Screen` corresponding to @xrootwin
  */
 GdkX11Screen *
 _gdk_x11_display_screen_for_xrootwin (GdkDisplay *display,
@@ -2042,9 +2041,9 @@ _gdk_x11_display_screen_for_xrootwin (GdkDisplay *display,
 
 /**
  * gdk_x11_display_get_xdisplay:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  *
- * Returns the X display of a #GdkDisplay.
+ * Returns the X display of a `GdkDisplay`.
  *
  * Returns: (transfer none): an X display
  */
@@ -2058,9 +2057,9 @@ gdk_x11_display_get_xdisplay (GdkDisplay *display)
 
 /**
  * gdk_x11_display_get_xscreen:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  *
- * Returns the X Screen used by #GdkDisplay.
+ * Returns the X Screen used by `GdkDisplay`.
  *
  * Returns: (transfer none): an X Screen
  */
@@ -2074,9 +2073,9 @@ gdk_x11_display_get_xscreen (GdkDisplay *display)
 
 /**
  * gdk_x11_display_get_xrootwindow:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  *
- * Returns the root X window used by #GdkDisplay.
+ * Returns the root X window used by `GdkDisplay`.
  *
  * Returns: an X Window
  */
@@ -2191,7 +2190,7 @@ broadcast_xmessage (GdkDisplay *display,
 
 /**
  * gdk_x11_display_broadcast_startup_message:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  * @message_type: startup notification message type ("new", "change",
  * or "remove")
  * @...: a list of key/value pairs (as strings), terminated by a
@@ -2305,14 +2304,14 @@ gdk_x11_display_request_selection_notification (GdkDisplay *display,
 
 /**
  * gdk_x11_display_get_user_time:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  *
- * Returns the timestamp of the last user interaction on 
+ * Returns the timestamp of the last user interaction on
  * @display. The timestamp is taken from events caused
- * by user interaction such as key presses or pointer 
+ * by user interaction such as key presses or pointer
  * movements. See gdk_x11_surface_set_user_time().
  *
- * Returns: the timestamp of the last user interaction 
+ * Returns: the timestamp of the last user interaction
  */
 guint32
 gdk_x11_display_get_user_time (GdkDisplay *display)
@@ -2322,7 +2321,7 @@ gdk_x11_display_get_user_time (GdkDisplay *display)
 
 /**
  * gdk_x11_display_get_startup_notification_id:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  *
  * Gets the startup notification ID for a display.
  * 
@@ -2336,7 +2335,7 @@ gdk_x11_display_get_startup_notification_id (GdkDisplay *display)
 
 /**
  * gdk_x11_display_set_startup_notification_id:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  * @startup_id: the startup notification ID (must be valid utf8)
  *
  * Sets the startup notification ID for a display.
@@ -2528,7 +2527,7 @@ delete_outdated_error_traps (GdkX11Display *display_x11)
 
 /**
  * gdk_x11_display_error_trap_push:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  *
  * Begins a range of X requests on @display for which X error events
  * will be ignored. Unignored errors (when no trap is pushed) will abort
@@ -2759,11 +2758,11 @@ gdk_x11_display_get_max_request_size (GdkDisplay *display)
 
 /**
  * gdk_x11_display_get_screen:
- * @display: (type GdkX11Display): a #GdkX11Display
+ * @display: (type GdkX11Display): a `GdkX11Display`
  *
- * Retrieves the #GdkX11Screen of the @display.
+ * Retrieves the `GdkX11Screen` of the @display.
  *
- * Returns: (transfer none): the #GdkX11Screen
+ * Returns: (transfer none): the `GdkX11Screen`
  */
 GdkX11Screen *
 gdk_x11_display_get_screen (GdkDisplay *display)
@@ -2965,7 +2964,7 @@ gdk_x11_display_class_init (GdkX11DisplayClass * class)
    * that GDK expects to translate, you may break GDK and/or GTK+ in
    * interesting ways. You have been warned.
    *
-   * If you want this signal handler to queue a #GdkEvent, you can use
+   * If you want this signal handler to queue a `GdkEvent`, you can use
    * gdk_display_put_event().
    *
    * If you are interested in X GenericEvents, bear in mind that
index d82d3a7d4b5a95f2ebf03b5fa0befdfeebecbe72..515848bd5e2230fbd32feafa0d5c3ae64802aafd 100644 (file)
@@ -67,7 +67,7 @@ typedef enum {
  * @GDK_DRAG_PROTO_ROOTWIN: An extension to the Xdnd protocol for
  *  unclaimed root window drops.
  *
- * Used in #GdkDrag to indicate the protocol according to
+ * Used in `GdkDrag` to indicate the protocol according to
  * which DND is done.
  */
 typedef enum
index 08f4493a8bf8a74dbeb53a6ada2759844e23baaf..b278b9d36ca377c8aa777f641bf385a96de6d529 100644 (file)
@@ -783,7 +783,7 @@ gdk_x11_gl_context_egl_make_current (GdkDisplay   *display,
 
 /**
  * gdk_x11_display_get_egl_version:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  * @major: (out): return location for the EGL major version
  * @minor: (out): return location for the EGL minor version
  *
index 4181168262aa997ed46209dd4ad1ef26de240134..83006eb51c410a6016048290a7367c3544ebb23a 100644 (file)
@@ -1181,7 +1181,7 @@ gdk_x11_gl_context_glx_make_current (GdkDisplay   *display,
 
 /**
  * gdk_x11_display_get_glx_version:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  * @major: (out): return location for the GLX major version
  * @minor: (out): return location for the GLX minor version
  *
index 2d2318f3d78e30155f46c0d017e85403410ac540..93bb4312b450e29b2903deb5b0cad8dde6465fa4 100644 (file)
@@ -1397,11 +1397,11 @@ gdk_x11_keymap_translate_keyboard_state (GdkKeymap       *keymap,
 
 /*< private >
  * gdk_x11_keymap_get_group_for_state:
- * @keymap: (type GdkX11Keymap): a #GdkX11Keymap
+ * @keymap: (type GdkX11Keymap): a `GdkX11Keymap`
  * @state: raw state returned from X
  *
  * Extracts the group from the state field sent in an X Key event.
- * This is only needed for code processing raw X events, since #GdkEventKey
+ * This is only needed for code processing raw X events, since `GdkEventKey`
  * directly includes an is_modifier field.
  *
  * Returns: the index of the active keyboard group for the event
@@ -1461,14 +1461,14 @@ _gdk_x11_keymap_add_virt_mods (GdkKeymap       *keymap,
 
 /*< private >
  * gdk_x11_keymap_key_is_modifier:
- * @keymap: (type GdkX11Keymap): a #GdkX11Keymap
+ * @keymap: (type GdkX11Keymap): a `GdkX11Keymap`
  * @keycode: the hardware keycode from a key event
  *
  * Determines whether a particular key code represents a key that
  * is a modifier. That is, it’s a key that normally just affects
  * the keyboard state and the behavior of other keys rather than
  * producing a direct effect itself. This is only needed for code
- * processing raw X events, since #GdkEventKey directly includes
+ * processing raw X events, since `GdkEventKey` directly includes
  * an is_modifier field.
  *
  * Returns: %TRUE if the hardware keycode is a modifier key
index 55afd7f036b5b39ac9325ff67d1c17c280a5003c..51f24ff1f30aaf68acceb0f0b13f0ce9557498de 100644 (file)
@@ -90,7 +90,7 @@ _gdk_x11_convert_grab_status (int status)
 
 /*
  * _gdk_x11_surface_grab_check_unmap:
- * @surface: a #GdkSurface
+ * @surface: a `GdkSurface`
  * @serial: serial from Unmap event (or from NextRequest(display)
  *   if the unmap is being done by this client.)
  *
@@ -121,7 +121,7 @@ _gdk_x11_surface_grab_check_unmap (GdkSurface *surface,
 
 /*
  * _gdk_x11_surface_grab_check_destroy:
- * @surface: a #GdkSurface
+ * @surface: a `GdkSurface`
  * 
  * Checks to see if surface is the current grab surface, and if
  * so, clear the current grab surface.
index 9c6929b1b93b18cf71051b0adc454efab1e46c2e..ccbd8b4b3af52f124f60250e5f4f8e93a82fd963 100644 (file)
@@ -116,7 +116,7 @@ gdk_x11_monitor_class_init (GdkX11MonitorClass *class)
 
 /**
  * gdk_x11_monitor_get_output:
- * @monitor: (type GdkX11Monitor): a #GdkMonitor
+ * @monitor: (type GdkX11Monitor): a `GdkMonitor`
  *
  * Returns the XID of the Output corresponding to @monitor.
  *
index bbe916d5ccaafac122c33d88ed9172f2bcabe7c6..056a1e96351d42b60ab9d03ef3471489ca2ca4e5 100644 (file)
@@ -66,14 +66,14 @@ lookup_cached_xatom (GdkDisplay *display,
 
 /**
  * gdk_x11_get_xatom_by_name_for_display:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  * @atom_name: a string
  * 
- * Returns the X atom for a #GdkDisplay corresponding to @atom_name.
+ * Returns the X atom for a `GdkDisplay` corresponding to @atom_name.
  * This function caches the result, so if called repeatedly it is much
  * faster than XInternAtom(), which is a round trip to the server each time.
  * 
- * Returns: a X atom for a #GdkDisplay
+ * Returns: a X atom for a `GdkDisplay`
  **/
 Atom
 gdk_x11_get_xatom_by_name_for_display (GdkDisplay  *display,
@@ -136,7 +136,7 @@ _gdk_x11_precache_atoms (GdkDisplay          *display,
 
 /**
  * gdk_x11_get_xatom_name_for_display:
- * @display: (type GdkX11Display): the #GdkDisplay where @xatom is defined
+ * @display: (type GdkX11Display): the `GdkDisplay` where @xatom is defined
  * @xatom: an X atom 
  * 
  * Returns the name of an X atom for its display. This
index 9f6af3d1eca11c578cb4239cc263c5752f87d8a3..9ab16f6db9b422dc69926594fcb5ac7b49395317 100644 (file)
@@ -120,7 +120,7 @@ gdk_x11_screen_finalize (GObject *object)
 
 /**
  * gdk_x11_screen_get_monitor_output:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
  * @monitor_num: number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)
  *
  * Gets the XID of the specified output/monitor.
@@ -358,9 +358,9 @@ out:
 
 /**
  * gdk_x11_screen_get_xscreen:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
  *
- * Returns the screen of a #GdkX11Screen.
+ * Returns the screen of a `GdkX11Screen`.
  *
  * Returns: (transfer none): an Xlib Screen*
  */
@@ -1176,7 +1176,7 @@ fetch_net_wm_check_window (GdkX11Screen *x11_screen)
 
 /**
  * gdk_x11_screen_supports_net_wm_hint:
- * @screen: the relevant #GdkX11Screen.
+ * @screen: the relevant `GdkX11Screen`.
  * @property_name: name of the WM property
  *
  * This function is specific to the X11 backend of GDK, and indicates
@@ -1189,7 +1189,7 @@ fetch_net_wm_check_window (GdkX11Screen *x11_screen)
  * is that your application can start up before the window manager
  * does when the user logs in, and before the window manager starts
  * gdk_x11_screen_supports_net_wm_hint() will return %FALSE for every property.
- * You can monitor the window_manager_changed signal on #GdkX11Screen to detect
+ * You can monitor the window_manager_changed signal on `GdkX11Screen` to detect
  * a window manager change.
  *
  * Returns: %TRUE if the window manager supports @property
@@ -1263,7 +1263,7 @@ gdk_x11_screen_supports_net_wm_hint (GdkX11Screen *x11_screen,
 
 /**
  * gdk_x11_screen_get_window_manager_name:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
  *
  * Returns the name of the window manager for @screen.
  *
@@ -1378,7 +1378,7 @@ get_netwm_cardinal_property (GdkX11Screen *x11_screen,
 
 /**
  * gdk_x11_screen_get_number_of_desktops:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
  *
  * Returns the number of workspaces for @screen when running under a
  * window manager that supports multiple workspaces, as described
@@ -1395,7 +1395,7 @@ gdk_x11_screen_get_number_of_desktops (GdkX11Screen *screen)
 
 /**
  * gdk_x11_screen_get_current_desktop:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
  *
  * Returns the current workspace for @screen when running under a
  * window manager that supports multiple workspaces, as described
index 4b9d150a6d0af48a28895e88a0835aad4bee9bbc..bfb64f4a18bcfdc4ce44f78228b4899f968e2a91 100644 (file)
@@ -34,7 +34,7 @@
 
 /**
  * gdk_x11_display_text_property_to_text_list:
- * @display: (type GdkX11Display): The #GdkDisplay where the encoding is defined
+ * @display: (type GdkX11Display): The `GdkDisplay` where the encoding is defined
  * @encoding: a string representing the encoding. The most
  *   common values for this are "STRING", or "COMPOUND_TEXT".
  *   This is value used as the type for the property
@@ -271,7 +271,7 @@ _gdk_x11_display_text_property_to_utf8_list (GdkDisplay    *display,
 
 /**
  * gdk_x11_display_string_to_compound_text:
- * @display: (type GdkX11Display): the #GdkDisplay where the encoding is defined
+ * @display: (type GdkX11Display): the `GdkDisplay` where the encoding is defined
  * @str: a nul-terminated string
  * @encoding: (out) (transfer none): location to store the encoding
  *   (to be used as the type for the property)
@@ -326,7 +326,7 @@ gdk_x11_display_string_to_compound_text (GdkDisplay  *display,
 
 /**
  * gdk_x11_display_utf8_to_compound_text:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
  * @str: a UTF-8 string
  * @encoding: (out) (transfer none): location to store resulting encoding
  * @format: (out): location to store format of the result
index 2cfd3b2e38b7c7fddaf3215dc0faa85147a1462a..e4952f2c7b164591b308093ff57d3f1984c0c544 100644 (file)
@@ -179,7 +179,7 @@ _gdk_x11_surface_get_toplevel (GdkSurface *surface)
 
 /*
  * gdk_x11_surface_update_size:
- * @self: a #GdkX11Surface
+ * @self: a `GdkX11Surface`
  * @width: the new width of the surface
  * @height: the new height of the surface
  * @scale: the new scale of the surface
@@ -2069,7 +2069,7 @@ gdk_x11_surface_lower (GdkSurface *surface)
 
 /**
  * gdk_x11_surface_move_to_current_desktop:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
  * 
  * Moves the surface to the correct workspace when running under a 
  * window manager that supports multiple workspaces, as described
@@ -2132,7 +2132,7 @@ get_netwm_cardinal_property (GdkSurface   *surface,
 
 /**
  * gdk_x11_surface_get_desktop:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
  *
  * Gets the number of the workspace @surface is on.
  *
@@ -2148,7 +2148,7 @@ gdk_x11_surface_get_desktop (GdkSurface *surface)
 
 /**
  * gdk_x11_surface_move_to_desktop:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
  * @desktop: the number of the workspace to move the surface to
  *
  * Moves the surface to the given workspace when running unde a
@@ -2351,7 +2351,7 @@ gdk_x11_surface_set_modal_hint (GdkSurface *surface,
 
 /**
  * gdk_x11_surface_set_skip_taskbar_hint:
- * @surface: (type GdkX11Surface): a native #GdkSurface
+ * @surface: (type GdkX11Surface): a native `GdkSurface`
  * @skips_taskbar: %TRUE to skip taskbars
  *
  * Sets a hint on @surface that taskbars should not
@@ -2377,7 +2377,7 @@ gdk_x11_surface_set_skip_taskbar_hint (GdkSurface *surface,
 
 /**
  * gdk_x11_surface_set_skip_pager_hint:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
  * @skips_pager: %TRUE to skip pagers
  *
  * Sets a hint on @surface that pagers should not
@@ -2403,7 +2403,7 @@ gdk_x11_surface_set_skip_pager_hint (GdkSurface *surface,
 
 /**
  * gdk_x11_surface_set_urgency_hint:
- * @surface: (type GdkX11Surface): a native #GdkSurface
+ * @surface: (type GdkX11Surface): a native `GdkSurface`
  * @urgent: %TRUE to indicate urgenct attention needed
  *
  * Sets a hint on @surface that it needs user attention.
@@ -2995,7 +2995,7 @@ gdk_x11_surface_set_input_region (GdkSurface     *surface,
 
 /**
  * gdk_x11_surface_set_user_time:
- * @surface: (type GdkX11Surface): A toplevel #GdkSurface
+ * @surface: (type GdkX11Surface): A toplevel `GdkSurface`
  * @timestamp: An XServer timestamp to which the property should be set
  *
  * The application can use this call to update the _NET_WM_USER_TIME
@@ -3057,7 +3057,7 @@ gdk_x11_surface_set_user_time (GdkSurface *surface,
 
 /**
  * gdk_x11_surface_set_utf8_property:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
  * @name: Property name, will be interned as an X atom
  * @value: (nullable): Property value, or %NULL to delete
  *
@@ -3092,7 +3092,7 @@ gdk_x11_surface_set_utf8_property  (GdkSurface *surface,
 
 /**
  * gdk_x11_surface_set_theme_variant:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
  * @variant: the theme variant to export
  *
  * GTK applications can request a dark theme variant. In order to
@@ -3537,7 +3537,7 @@ gdk_x11_surface_unfullscreen (GdkSurface *surface)
 
 /**
  * gdk_x11_surface_get_group:
- * @surface: (type GdkX11Surface): The #GdkSurface
+ * @surface: (type GdkX11Surface): The `GdkSurface`
  *
  * Returns the group this surface belongs to.
  *
@@ -3558,8 +3558,8 @@ gdk_x11_surface_get_group (GdkSurface *surface)
 
 /**
  * gdk_x11_surface_set_group:
- * @surface: (type GdkX11Surface): a native #GdkSurface
- * @leader: a #GdkSurface
+ * @surface: (type GdkX11Surface): a native `GdkSurface`
+ * @leader: a `GdkSurface`
  *
  * Sets the group leader of @surface to be @leader.
  * See the ICCCM for details.
@@ -4660,9 +4660,9 @@ gdk_x11_get_server_time (GdkSurface *surface)
 
 /**
  * gdk_x11_surface_get_xid:
- * @surface: (type GdkX11Surface): a native #GdkSurface.
+ * @surface: (type GdkX11Surface): a native `GdkSurface`.
  * 
- * Returns the X resource (surface) belonging to a #GdkSurface.
+ * Returns the X resource (surface) belonging to a `GdkSurface`.
  * 
  * Returns: the ID of @drawable’s X resource.
  **/
@@ -4685,7 +4685,7 @@ gdk_x11_surface_get_scale_factor (GdkSurface *surface)
 
 /**
  * gdk_x11_surface_set_frame_sync_enabled:
- * @surface: (type GdkX11Surface): a native #GdkSurface
+ * @surface: (type GdkX11Surface): a native `GdkSurface`
  * @frame_sync_enabled: whether frame-synchronization should be enabled
  *
  * This function can be used to disable frame synchronization for a surface.
index a6dce8699f753b42d376dbed804329e53f95c505..1e48e477a7ba1dba217cfef4f30e6efd20822693 100644 (file)
@@ -285,12 +285,12 @@ _gdk_x11_screen_init_visuals (GdkX11Screen *x11_screen,
 
 /*< private >
  * gdk_x11_screen_lookup_visual:
- * @screen: a #GdkX11Screen.
+ * @screen: a `GdkX11Screen`
  * @xvisualid: an X Visual ID.
  *
- * Looks up the #GdkVisual for a particular screen and X Visual ID.
+ * Looks up the `GdkVisual` for a particular screen and X Visual ID.
  *
- * Returns: (transfer none) (nullable) (type GdkX11Visual): the #GdkVisual
+ * Returns: (transfer none) (nullable) (type GdkX11Visual): the `GdkVisual`
  */
 GdkX11Visual *
 gdk_x11_screen_lookup_visual (GdkX11Screen *x11_screen,
@@ -307,9 +307,9 @@ gdk_x11_screen_lookup_visual (GdkX11Screen *x11_screen,
 
 /*< private >
  * gdk_x11_visual_get_xvisual:
- * @visual: a #GdkX11Visual.
+ * @visual: a `GdkX11Visual`
  *
- * Returns the X visual belonging to a #GdkX11Visual.
+ * Returns the X visual belonging to a `GdkX11Visual`.
  *
  * Returns: (transfer none): an Xlib Visual*.
  **/
index 5c6a0c36e710f01669f7bc744c01f9618015ebb5..8633eadddb876e592582acf6625b618b545ffb39 100644 (file)
@@ -69,9 +69,9 @@ Cursor        gdk_x11_display_get_xcursor      (GdkDisplay  *display,
 
 /**
  * GDK_DISPLAY_XDISPLAY:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
  *
- * Returns the display of a #GdkDisplay.
+ * Returns the display of a `GdkDisplay`.
  *
  * Returns: an Xlib Display*
  */
index 63b11ecf04cc3949724f061002fb24c5a82f7724..32fa80db762d767cacdb4ff3479aa8cb4d6d41ae 100644 (file)
@@ -80,9 +80,9 @@ void     gdk_x11_surface_set_frame_sync_enabled (GdkSurface *surface,
 
 /**
  * GDK_SURFACE_XDISPLAY:
- * @win: a #GdkSurface.
+ * @win: a `GdkSurface`
  *
- * Returns the display of a #GdkSurface.
+ * Returns the display of a `GdkSurface`.
  *
  * Returns: an Xlib Display*.
  */
@@ -90,9 +90,9 @@ void     gdk_x11_surface_set_frame_sync_enabled (GdkSurface *surface,
 
 /**
  * GDK_SURFACE_XID:
- * @win: a #GdkSurface.
+ * @win: a `GdkSurface`
  *
- * Returns the X window belonging to a #GdkSurface.
+ * Returns the X window belonging to a `GdkSurface`.
  *
  * Returns: the Xlib Window of @win.
  */
index c210766ed5e5f49aad91c551f041b4a39c972c15..0ed21dfefb42f235213c5976e98601c419960958 100644 (file)
@@ -41,7 +41,7 @@ G_BEGIN_DECLS
  * @xid: XID to stuff into the pointer
  *
  * Converts an XID into a @gpointer. This is useful with data structures
- * that use pointer arguments such as #GHashTable. Use GDK_POINTER_TO_XID()
+ * that use pointer arguments such as `GHashTable`. Use GDK_POINTER_TO_XID()
  * to convert the argument back to an XID.
  */
 #define GDK_XID_TO_POINTER(xid) GUINT_TO_POINTER(xid)